.class public Lmyview/MyScrollView;
.super Landroid/widget/ScrollView;
.source "MyScrollView.java"


# static fields
.field public static flag:Z


# instance fields
.field mFlowView:Landroid/view/View;

.field mTopView:Landroid/view/View;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 11
    const/4 v0, 0x0

    sput-boolean v0, Lmyview/MyScrollView;->flag:Z

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    .line 15
    invoke-direct {p0, p1, p2}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 17
    return-void
.end method


# virtual methods
.method public listenerFlowViewScrollState(Landroid/view/View;Landroid/view/View;)V
    .locals 0
    .param p1, "topView"    # Landroid/view/View;
    .param p2, "flowView"    # Landroid/view/View;

    .prologue
    .line 40
    iput-object p1, p0, Lmyview/MyScrollView;->mTopView:Landroid/view/View;

    .line 41
    iput-object p2, p0, Lmyview/MyScrollView;->mFlowView:Landroid/view/View;

    .line 42
    return-void
.end method

.method protected onScrollChanged(IIII)V
    .locals 2
    .param p1, "l"    # I
    .param p2, "t"    # I
    .param p3, "oldl"    # I
    .param p4, "oldt"    # I

    .prologue
    .line 22
    invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/ScrollView;->onScrollChanged(IIII)V

    .line 23
    iget-object v0, p0, Lmyview/MyScrollView;->mTopView:Landroid/view/View;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lmyview/MyScrollView;->mFlowView:Landroid/view/View;

    if-eqz v0, :cond_0

    .line 24
    iget-object v0, p0, Lmyview/MyScrollView;->mTopView:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getHeight()I

    move-result v0

    iget-object v1, p0, Lmyview/MyScrollView;->mFlowView:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getHeight()I

    move-result v1

    sub-int/2addr v0, v1

    if-lt p2, v0, :cond_1

    .line 25
    iget-object v0, p0, Lmyview/MyScrollView;->mFlowView:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 26
    const/4 v0, 0x1

    sput-boolean v0, Lmyview/MyScrollView;->flag:Z

    .line 33
    :cond_0
    :goto_0
    return-void

    .line 29
    :cond_1
    iget-object v0, p0, Lmyview/MyScrollView;->mFlowView:Landroid/view/View;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0
.end method
